﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Winter.BackEnd.Models.Domain
{
    public partial class Message
    {
        public Person Sender
        {
            get
            {
                return this.Person;
            }
        }
        public Person[] Recepients
        {
            get
            {
                return (from recepient in this.PersonMessages
                       select recepient.Person).ToArray();
            }
        }
    }
}
